package io.github.talelin.latticy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.github.talelin.latticy.conf.MyBaseMapper;
import io.github.talelin.latticy.model.CategoryDO;

import java.util.List;

/**
 * ClassName CategoryMapper
 * Description
 * Create by zcy
 * Date 2022-06-09
 */
public interface CategoryMapper extends MyBaseMapper<CategoryDO> {

    /**
     * 根据id查询这个id的父级id
     * @param id
     * @return
     */
    List<CategoryDO> findParentId(Integer id);
}
